﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.ServiceModel;
using PeertoPeerObjectShare.PacketHandler;

namespace PeertoPeerObjectShare
{
    [ServiceContract(
        Namespace="PeertoPeerObjectShare",
        CallbackContract = typeof(IPeerChannelChat))]
    public interface IPeerChannelChat
    {
        [OperationContract(IsOneWay=true)]
        void Logon(string name);

        [OperationContract(IsOneWay = true)]
        void Chat(string name, string message);

        [OperationContract(IsOneWay = true)]
        void Logoff(string name);
    }

    public interface IPeerChannelChatClient : IPeerChannelChat, IClientChannel { }
}
